import React from 'react';
import {View, StyleSheet} from 'react-native';
import {normalize} from '../../utils/adapter';
import Shimmer from './ShimmerSkeleton';

export default function VerticalSkeletion() {
  return (
    <View style={styles.container}>
      <Shimmer style={styles.cover} />
      <View style={styles.textGroup}>
        <Shimmer style={[styles.line, {width: '92%'}]} />
        <Shimmer style={[styles.line, {width: '60%'}]} />
      </View>
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
  cover: {
    width: normalize(100),
    height: normalize(150),
    backgroundColor: '#e0e0e0',
    borderRadius: 6,
  },
  textGroup: {
    flex: 1,
  },
  line: {
    height: 14,
    backgroundColor: '#e0e0e0',
    borderRadius: 4,
    marginTop:normalize(6),
  },
});
